package cn.gson.school.service.xitong;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.gson.school.dao.xitong.DeptSerchDao;

@Service
public class EmpService {


	@Autowired
	private DeptSerchDao deptDao;

	/**
	 * 部门外键的添加
	 * 
	 */
	public Long findeptId(String deptName) {
		Long deptId = deptDao.xtdeptId(deptName);
		System.out.println("id=" + deptId);
		return deptId;
	}


}
